package cn.iocoder.yudao.module.lowcode.controller.admin.datasource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 低代码数据源连接测试 Response VO")
@Data
public class LowcodeDataSourceTestRespVO {

    @Schema(description = "是否连接成功", example = "true")
    private Boolean success;

    @Schema(description = "测试结果消息", example = "连接成功")
    private String message;

    @Schema(description = "数据库产品名称", example = "MySQL")
    private String databaseProductName;

    @Schema(description = "数据库产品版本", example = "8.0.33")
    private String databaseProductVersion;

    @Schema(description = "驱动名称", example = "MySQL Connector/J")
    private String driverName;

    @Schema(description = "驱动版本", example = "mysql-connector-java-8.0.33")
    private String driverVersion;

    @Schema(description = "实际连接URL", example = "jdbc:mysql://127.0.0.1:3306/test")
    private String url;

    @Schema(description = "连接用户名", example = "root")
    private String username;

    @Schema(description = "数据库表数量", example = "25")
    private Integer tableCount;

    @Schema(description = "示例表名列表", example = "[\"user\", \"role\", \"permission\"]")
    private List<String> sampleTables;

}